{
    'includes': ['../build/common.gypi'],
    'targets':[
    {
        'target_name':'cosip',
        'type':'static_library',

        'defines': [
            'HAVE_FCNTL_H',
            'HAVE_SYS_TIME_H',
            'HAVE_STRUCT_TIMEVAL',
            'HAVE_SYS_SELECT_H',
            'HAVE_PTHREAD',
            'HAVE_SEMAPHORE_H',
            'ENABLE_TRACE',
            //'OSIP_MT',
            'HAVE_TIME_H',
            'HAVE_ARPA_INET_H',
            'HAVE_NETDB_H', 
      ],
        'include_dirs+':[
            'libosip/jni/include',
            'libexosip/jni/include',
            ],
        'cflags_cc!': [
        '-fno-exceptions',
        ],
        'cflags_cc+': [
        '-Wno-unused-variable',
        '-fpermissive',
        ],
        'cflags_c+': [
        '-Wno-unused-variable',
        '-Wno-sign-compare',
        '-Wno-implicit-function-declaration',
        '-Wno-unused-function',
        ],
        
        'sources':[
    'libosip/jni/src/osipparser2/osip_accept.c',
	'libosip/jni/src/osipparser2/osip_proxy_authenticate.c',
	'libosip/jni/src/osipparser2/osip_parser_cfg.c',
	'libosip/jni/src/osipparser2/osip_mime_version.c',
	'libosip/jni/src/osipparser2/osip_uri.c',
	'libosip/jni/src/osipparser2/osip_call_id.c',
	'libosip/jni/src/osipparser2/osip_contact.c',
	'libosip/jni/src/osipparser2/osip_header.c',
	'libosip/jni/src/osipparser2/osip_list.c',
	'libosip/jni/src/osipparser2/osip_authentication_info.c',
	'libosip/jni/src/osipparser2/osip_cseq.c',
	'libosip/jni/src/osipparser2/osip_message.c',
	'libosip/jni/src/osipparser2/osip_record_route.c',
	'libosip/jni/src/osipparser2/osip_authorization.c',
	'libosip/jni/src/osipparser2/sdp_accessor.c',
	'libosip/jni/src/osipparser2/osip_accept_language.c',
	'libosip/jni/src/osipparser2/osip_via.c',
	'libosip/jni/src/osipparser2/osip_allow.c',
	'libosip/jni/src/osipparser2/osip_call_info.c',
	'libosip/jni/src/osipparser2/osip_proxy_authentication_info.c',
	'libosip/jni/src/osipparser2/osip_proxy_authorization.c',
	'libosip/jni/src/osipparser2/sdp_message.c',
	'libosip/jni/src/osipparser2/osip_accept_encoding.c',
	'libosip/jni/src/osipparser2/osip_content_encoding.c',
	'libosip/jni/src/osipparser2/osip_to.c',
	'libosip/jni/src/osipparser2/osip_content_disposition.c',
	'libosip/jni/src/osipparser2/osip_message_to_str.c',
	'libosip/jni/src/osipparser2/osip_www_authenticate.c',
	'libosip/jni/src/osipparser2/osip_error_info.c',
	'libosip/jni/src/osipparser2/osip_body.c',
	'libosip/jni/src/osipparser2/osip_content_length.c',
	'libosip/jni/src/osipparser2/osip_from.c',
	'libosip/jni/src/osipparser2/osip_alert_info.c',
	'libosip/jni/src/osipparser2/osip_message_parse.c',
	'libosip/jni/src/osipparser2/osip_content_type.c',
	'libosip/jni/src/osipparser2/osip_port.c',
	'libosip/jni/src/osipparser2/osip_md5c.c',
	'libosip/jni/src/osipparser2/osip_route.c',
	'libosip/jni/src/osip2/osip_transaction.c',
	'libosip/jni/src/osip2/osip_dialog.c',
	'libosip/jni/src/osip2/osip_event.c',
	'libosip/jni/src/osip2/nict_fsm.c',
	'libosip/jni/src/osip2/port_thread.c',
	'libosip/jni/src/osip2/nict.c',
	'libosip/jni/src/osip2/nist.c',
	'libosip/jni/src/osip2/port_sema.c',
	'libosip/jni/src/osip2/ict_fsm.c',
	'libosip/jni/src/osip2/ict.c',
	'libosip/jni/src/osip2/port_fifo.c',
	'libosip/jni/src/osip2/ist_fsm.c',
	'libosip/jni/src/osip2/ist.c',
	'libosip/jni/src/osip2/osip_time.c',
	'libosip/jni/src/osip2/port_condv.c',
	'libosip/jni/src/osip2/fsm_misc.c',
	'libosip/jni/src/osip2/osip.c',
	'libosip/jni/src/osip2/nist_fsm.c',

    'libexosip/jni/src/eXosip2.h',
    'libexosip/jni/src/jresponse.c',
    'libexosip/jni/src/eXsubscription_api.c',
    'libexosip/jni/src/eXregister_api.c',
    'libexosip/jni/src/jevents.c',
    'libexosip/jni/src/jcallback.c',
    'libexosip/jni/src/eXtl_tcp.c',
    'libexosip/jni/src/rijndael.c',
    'libexosip/jni/src/jreg.c',
    'libexosip/jni/src/sdp_offans.c',
    'libexosip/jni/src/eXconf.c',
    'libexosip/jni/src/jauth.c',
    'libexosip/jni/src/udp.c',
    'libexosip/jni/src/eXcall_api.c',
    'libexosip/jni/src/eXtl_tls.c',
    'libexosip/jni/src/jdialog.c',
    'libexosip/jni/src/eXtransport.c',
    'libexosip/jni/src/eXosip.c',
    'libexosip/jni/src/jrequest.c',
    'libexosip/jni/src/jsubscribe.c',
    'libexosip/jni/src/eXtl_dtls.c',
    'libexosip/jni/src/jcall.c',
    'libexosip/jni/src/misc.c',
    'libexosip/jni/src/milenage.c',
    'libexosip/jni/src/eXmessage_api.c',
    'libexosip/jni/src/eXtl_udp.c',
    'libexosip/jni/src/eXoptions_api.c',
    'libexosip/jni/src/eXinsubscription_api.c',
    'libexosip/jni/src/eXutils.c',
    'libexosip/jni/src/jpipe.c',
    'libexosip/jni/src/jpublish.c',
    'libexosip/jni/src/eXpublish_api.c',
    'libexosip/jni/src/jnotify.c',
    'libexosip/jni/src/inet_ntop.c',
    'libexosip/jni/tools/sip_reg.c',
        ],

        'conditions':[
            ['OS=="android"', {
              'link_settings': {
                'libraries': [
                  '-lm',
                  '-llog',
                ],
              },
            }],
        ]
    },
    ],
}